package com.mo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 墨渐生微
 * @program mo-all
 * @apiNote
 * @since 2023/2/10
 */
@Controller
public class IndexController {

    @GetMapping("/")
    public String index() {
        return "redirect:/dist/index.html";
    }

    @GetMapping("/universe-dist/**/{path:^(?!.*\\.(?:css|html|js)$).*}")
    public String distance(@PathVariable String path) {
        return "redirect:/dist/index.html";
    }
}
